* {
    margin: 0;
    padding: 0;
}
body{
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.loading {
    position: relative;
    margin-left: -24px;
    margin-top: -24px;
}

.loading div {
    width: 24px;
    height: 12px;
    margin-top: 6px;
    background-color: #f3f3f3;
    position: absolute;
    animation: loading 2.1s infinite backwards;
}

.loading div::after,
.loading div::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
}

.loading div:after {
    top: -6px;
    border-bottom: 6px solid #f3f3f3;
}

.loading div:before {
    bottom: -6px;
    border-top: 6px solid #f3f3f3;
}

.loading div:nth-child(1) {
    left: -28px;
    top: 0;
    animation-delay: 0s;
}

.loading div:nth-child(2) {
    left: -14px;
    top: 22px;
    animation-delay: .1s;
}

.loading div:nth-child(3) {
    left: 14px;
    top: 22px;
    animation-delay: .2s;
}

.loading div:nth-child(4) {
    left: 28px;
    top: 0px;
    animation-delay: .3s;
}

.loading div:nth-child(5) {
    left: 14px;
    top: -22px;
    animation-delay: .4s;
}

.loading div:nth-child(6) {
    left: -14px;
    top: -22px;
    animation-delay: .5s;
}

.loading div:nth-child(7) {
    left: 0;
    top: 0;
    animation-delay: .6s;
}

@keyframes loading {

    0%,
    20%,
    80%,
    100% {
        opacity: 0;
        -webkit-transform: scale(0);
        transform: scale(0);
    }

    30%,
    70% {
        opacity: 1;
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}